package com.ysh.domain;

import java.util.List;

public class Student {

  private long id;
  private String name;
  private long age;
  private long cid;

  private List<Course> courses;    // 当前学生选择课程集合

  public Student() {
  }

  public Student(long id, String name, long age, long cid, List<Course> courses) {
    this.id = id;
    this.name = name;
    this.age = age;
    this.cid = cid;
    this.courses = courses;
  }

  public List<Course> getCourses() {
    return courses;
  }

  public void setCourses(List<Course> courses) {
    this.courses = courses;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public long getAge() {
    return age;
  }

  public void setAge(long age) {
    this.age = age;
  }


  public long getCid() {
    return cid;
  }

  public void setCid(long cid) {
    this.cid = cid;
  }

  @Override
  public String toString() {
    return "Student{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", age=" + age +
            ", cid=" + cid +
            ", courses=" + courses +
            '}';
  }
}
